package com.gzsxy.esjy.service.auth.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gzsxy.esjy.service.auth.entity.Matedata;
import com.gzsxy.esjy.service.base.dto.request.AddressRequest;
import com.gzsxy.esjy.service.base.dto.response.MatedataRsp;
import org.springframework.http.server.reactive.ServerHttpRequest;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface AddressService extends IService<Matedata> {

    /**
     * @description: 根据用户id查询收货地址
     * @param
     * @return
     */
    List<MatedataRsp> getAddressByUserId(String userId);

    /**
     * @description: 添加收货地址
     * @param
     * @return
     */
    void addAddress(AddressRequest addressRequest, HttpServletRequest request);

    /**
     * @description: 修改收货地址
     * @param
     * @return
     */
    void editAddress(AddressRequest addressRequest);


    /**
     * @description: 删除地址
     * @param
     * @return
     */
    void deleteAddress(String id);
}
